﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using ServiceInterfaces.DataContracts;

namespace ServiceInterfaces.ServiceInterfaces
{
    [ServiceContract]
    public  interface IShopAndProductTemplete
    {
        /// <summary>
        /// 获取所有产品模版
        /// </summary>
        /// <param name="unit"></param>
        /// <returns></returns>
        [OperationContract]
        Dictionary<int, List<ProductTempleteInfo>> GetAllShopProductTempleteList(string unit);

        /// <summary>
        /// 获取商户所勾选的产品模版
        /// </summary>
        /// <param name="shopId"></param>
        /// <param name="unit"></param>
        /// <returns></returns>
        [OperationContract]
        List<ProductTempleteInfo> GetProductTempleteList(int shopId, string unit);

        /// <summary>
        /// 获取所有有效商户
        /// </summary>
        /// <returns></returns>
        [OperationContract]
        List<ShopInfo_Order> GetShopInfo();
    }
}
